package com.xm9m.web.service.interfaces;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by Liutong on 12/17/15.
 */
public interface IRestApi {
    /**
     *
     * @param requestData
     * @param <T>
     * @return
     */
    <T extends IXm9mResponse> T execute(String requestData, String version) throws Exception;


    /**
     *
     * @param request
     */
    void setHttpServletRequest(HttpServletRequest request);


    /**
     *
     * @return
     */
    HttpServletRequest getHttpServletRequest();

    /**
     * 设置签名
     * @param sign
     */
    void setSign(String sign);

    /**
     * 获得签名
     * @return
     */
    String getSign();

    /**
     *
     * @param st
     */
    void setSt(Long st);

    /**
     *
     * @return
     */
    Long getSt();

    /**
     * 设置设备ID
     * @param deviceId
     */
    void setDeviceId(String deviceId);

    /**
     * 获得设备ID
     * @return
     */
    String getDeviceId();

    void setUserId(Long userId);

    Long getUserId();

}
